/**
 * 
 */
package snowyjuhannus.common.tests;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Test;

import snowyjuhannus.common.Lift;
import snowyjuhannus.common.Set;

/**
 * @author jani
 *
 */
public class SetTests {

	Set testSet;
	
	@After
	public void tearDown(){
		testSet = null;
	}
	
	
	@Test
	public void testSet() {
		Lift testLift = new Lift(50.00f, "kg");
		testSet = new Set("Squat" , 5 , testLift);
		
		String resultString = testSet.toString();
		String expectedString = "Squat: 5 x 50,00kg";
		
		assertEquals("Strings not Matching", expectedString, resultString);
	}

	
	
	@Test
	public void testGetLiftCount() {
		Lift testLift = new Lift(25, "kg");
		testSet = new Set("Deadlift" , 12 , testLift);
		
		int actual = testSet.getLiftCount();
		int expected = 12;
		
		assertEquals("Amount of Lifts not matching.", expected, actual);
	}

}
